<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        
        <link rel="stylesheet" href="../css/button.css">
        <title>Document</title>
        <script src="./js/01.js">
            //外部js文件可以在head里面通过src属性标明路径以引入html文件
        </script>
        
    </head>
    <body>
        <div>
            <p id="demo">
                这是一个段落
            </p>
            <div>
                <p><button class="niceButton1" onclick="push01()"><span>pick here</span></button></p>
                <p><button class="niceButton1" onclick="print01_1()"><span>pick here</span></button></p>
                <p><button class="niceButton1" onclick="time_output()"><span>查看时间</span></button></p>
            </div>
            
            
            
            
        </div>

        <script>//js可以写在html文件里面的head或body标签里
            function push01(){
                document.getElementById("demo").innerHTML="我的第一个 JavaScript 函数";
            }
        </script>
    </body>
</html>
